import java.util.*;

# forgot to comment

public class Grade
{
    int count;
    double sum;
    double avg;

    public void getGrades()
    {
        Scanner scan = new Scanner(System.in);
    
        System.out.print("Enter number of grades: ");
        count = scan.nextInt();
    
        for (int i=0; i<count; i++)
        {
            System.out.print("Enter grade #" + i + ": ");
            sum += scan.nextFloat();
        }
    }

    public void computeAvg()
    {
        avg = sum / count;
    }

    public double getAvg()
    {
        return avg;
    }
}
